package net.seayan.designpattern4j.template;

public class JeepImpl extends AbstractTemplate {

	private boolean hookFlag=false;
	
	@Override
	protected void start() {
		System.out.println("Jeep start!");
	}

	@Override
	protected void check() {
		System.out.println("Jeep check!");
	}

	@Override
	protected void stop() {
		System.out.println("Jeep stop!");
	}

	@Override
	protected void hook() {
		System.out.println("Jeep hook!");
	}
	
	protected boolean isHook(){
		return hookFlag;
	}
	
	public void setHook(boolean hookFlag){
		this.hookFlag=hookFlag;
	}

}
